3.619 \(\int \frac{(1+x) (1+2 x+x^2)^5}{x^{20}} \, dx\)

Optimal. Leaf size=97 \[ \frac{(x+1)^{12}}{604656 x^{12}}-\frac{(x+1)^{12}}{50388 x^{13}}+\frac{(x+1)^{12}}{7752 x^{14}}-\frac{7 (x+1)^{12}}{11628 x^{15}}+\frac{35 (x+1)^{12}}{15504 x^{16}}-\frac{7 (x+1)^{12}}{969 x^{17}}+\frac{7 (x+1)^{12}}{342 x^{18}}-\frac{(x+1)^{12}}{19 x^{19}} \]

[Out]

-(1 + x)^12/(19*x^19) + (7*(1 + x)^12)/(342*x^18) - (7*(1 + x)^12)/(969*x^17) + (35*(1 + x)^12)/(15504*x^16) -
 (7*(1 + x)^12)/(11628*x^15) + (1 + x)^12/(7752*x^14) - (1 + x)^12/(50388*x^13) + (1 + x)^12/(604656*x^12)

________________________________________________________________________________________

Rubi [A]  time = 0.0268267, antiderivative size = 97, normalized size of antiderivative = 1., number of steps used = 9, number of rules used = 3, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.176, Rules used = {27, 45, 37} \[ \frac{(x+1)^{12}}{604656 x^{12}}-\frac{(x+1)^{12}}{50388 x^{13}}+\frac{(x+1)^{12}}{7752 x^{14}}-\frac{7 (x+1)^{12}}{11628 x^{15}}+\frac{35 (x+1)^{12}}{15504 x^{16}}-\frac{7 (x+1)^{12}}{969 x^{17}}+\frac{7 (x+1)^{12}}{342 x^{18}}-\frac{(x+1)^{12}}{19 x^{19}} \]

Antiderivative was successfully verified.

[In]

Int[((1 + x)*(1 + 2*x + x^2)^5)/x^20,x]

[Out]

-(1 + x)^12/(19*x^19) + (7*(1 + x)^12)/(342*x^18) - (7*(1 + x)^12)/(969*x^17) + (35*(1 + x)^12)/(15504*x^16) -
 (7*(1 + x)^12)/(11628*x^15) + (1 + x)^12/(7752*x^14) - (1 + x)^12/(50388*x^13) + (1 + x)^12/(604656*x^12)

Rule 27

Int[(u_.)*((a_) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Int[u*Cancel[(b/2 + c*x)^(2*p)/c^p], x] /; Fr
eeQ[{a, b, c}, x] && EqQ[b^2 - 4*a*c, 0] && IntegerQ[p]

Rule 45

Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[((a + b*x)^(m + 1)*(c + d*x)^(n + 1
))/((b*c - a*d)*(m + 1)), x] - Dist[(d*Simplify[m + n + 2])/((b*c - a*d)*(m + 1)), Int[(a + b*x)^Simplify[m +
1]*(c + d*x)^n, x], x] /; FreeQ[{a, b, c, d, m, n}, x] && NeQ[b*c - a*d, 0] && ILtQ[Simplify[m + n + 2], 0] &&
 NeQ[m, -1] &&  !(LtQ[m, -1] && LtQ[n, -1] && (EqQ[a, 0] || (NeQ[c, 0] && LtQ[m - n, 0] && IntegerQ[n]))) && (
SumSimplerQ[m, 1] ||  !SumSimplerQ[n, 1])

Rule 37

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[((a + b*x)^(m + 1)*(c + d*x)^(n +
1))/((b*c - a*d)*(m + 1)), x] /; FreeQ[{a, b, c, d, m, n}, x] && NeQ[b*c - a*d, 0] && EqQ[m + n + 2, 0] && NeQ
[m, -1]

Rubi steps

\begin{align*} \int \frac{(1+x) \left (1+2 x+x^2\right )^5}{x^{20}} \, dx &=\int \frac{(1+x)^{11}}{x^{20}} \, dx\\ &=-\frac{(1+x)^{12}}{19 x^{19}}-\frac{7}{19} \int \frac{(1+x)^{11}}{x^{19}} \, dx\\ &=-\frac{(1+x)^{12}}{19 x^{19}}+\frac{7 (1+x)^{12}}{342 x^{18}}+\frac{7}{57} \int \frac{(1+x)^{11}}{x^{18}} \, dx\\ &=-\frac{(1+x)^{12}}{19 x^{19}}+\frac{7 (1+x)^{12}}{342 x^{18}}-\frac{7 (1+x)^{12}}{969 x^{17}}-\frac{35}{969} \int \frac{(1+x)^{11}}{x^{17}} \, dx\\ &=-\frac{(1+x)^{12}}{19 x^{19}}+\frac{7 (1+x)^{12}}{342 x^{18}}-\frac{7 (1+x)^{12}}{969 x^{17}}+\frac{35 (1+x)^{12}}{15504 x^{16}}+\frac{35 \int \frac{(1+x)^{11}}{x^{16}} \, dx}{3876}\\ &=-\frac{(1+x)^{12}}{19 x^{19}}+\frac{7 (1+x)^{12}}{342 x^{18}}-\frac{7 (1+x)^{12}}{969 x^{17}}+\frac{35 (1+x)^{12}}{15504 x^{16}}-\frac{7 (1+x)^{12}}{11628 x^{15}}-\frac{7 \int \frac{(1+x)^{11}}{x^{15}} \, dx}{3876}\\ &=-\frac{(1+x)^{12}}{19 x^{19}}+\frac{7 (1+x)^{12}}{342 x^{18}}-\frac{7 (1+x)^{12}}{969 x^{17}}+\frac{35 (1+x)^{12}}{15504 x^{16}}-\frac{7 (1+x)^{12}}{11628 x^{15}}+\frac{(1+x)^{12}}{7752 x^{14}}+\frac{\int \frac{(1+x)^{11}}{x^{14}} \, dx}{3876}\\ &=-\frac{(1+x)^{12}}{19 x^{19}}+\frac{7 (1+x)^{12}}{342 x^{18}}-\frac{7 (1+x)^{12}}{969 x^{17}}+\frac{35 (1+x)^{12}}{15504 x^{16}}-\frac{7 (1+x)^{12}}{11628 x^{15}}+\frac{(1+x)^{12}}{7752 x^{14}}-\frac{(1+x)^{12}}{50388 x^{13}}-\frac{\int \frac{(1+x)^{11}}{x^{13}} \, dx}{50388}\\ &=-\frac{(1+x)^{12}}{19 x^{19}}+\frac{7 (1+x)^{12}}{342 x^{18}}-\frac{7 (1+x)^{12}}{969 x^{17}}+\frac{35 (1+x)^{12}}{15504 x^{16}}-\frac{7 (1+x)^{12}}{11628 x^{15}}+\frac{(1+x)^{12}}{7752 x^{14}}-\frac{(1+x)^{12}}{50388 x^{13}}+\frac{(1+x)^{12}}{604656 x^{12}}\\ \end{align*}

Mathematica [A]  time = 0.0023949, size = 79, normalized size = 0.81 \[ -\frac{1}{8 x^8}-\frac{11}{9 x^9}-\frac{11}{2 x^{10}}-\frac{15}{x^{11}}-\frac{55}{2 x^{12}}-\frac{462}{13 x^{13}}-\frac{33}{x^{14}}-\frac{22}{x^{15}}-\frac{165}{16 x^{16}}-\frac{55}{17 x^{17}}-\frac{11}{18 x^{18}}-\frac{1}{19 x^{19}} \]

Antiderivative was successfully verified.

[In]

Integrate[((1 + x)*(1 + 2*x + x^2)^5)/x^20,x]

[Out]

-1/(19*x^19) - 11/(18*x^18) - 55/(17*x^17) - 165/(16*x^16) - 22/x^15 - 33/x^14 - 462/(13*x^13) - 55/(2*x^12) -
 15/x^11 - 11/(2*x^10) - 11/(9*x^9) - 1/(8*x^8)

________________________________________________________________________________________

Maple [A]  time = 0.006, size = 62, normalized size = 0.6 \begin{align*} -{\frac{11}{9\,{x}^{9}}}-{\frac{165}{16\,{x}^{16}}}-22\,{x}^{-15}-{\frac{55}{17\,{x}^{17}}}-33\,{x}^{-14}-{\frac{1}{8\,{x}^{8}}}-{\frac{11}{2\,{x}^{10}}}-{\frac{55}{2\,{x}^{12}}}-{\frac{462}{13\,{x}^{13}}}-{\frac{1}{19\,{x}^{19}}}-15\,{x}^{-11}-{\frac{11}{18\,{x}^{18}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((1+x)*(x^2+2*x+1)^5/x^20,x)

[Out]

-11/9/x^9-165/16/x^16-22/x^15-55/17/x^17-33/x^14-1/8/x^8-11/2/x^10-55/2/x^12-462/13/x^13-1/19/x^19-15/x^11-11/
18/x^18

________________________________________________________________________________________

Maxima [A]  time = 1.02666, size = 81, normalized size = 0.84 \begin{align*} -\frac{75582 \, x^{11} + 739024 \, x^{10} + 3325608 \, x^{9} + 9069840 \, x^{8} + 16628040 \, x^{7} + 21488544 \, x^{6} + 19953648 \, x^{5} + 13302432 \, x^{4} + 6235515 \, x^{3} + 1956240 \, x^{2} + 369512 \, x + 31824}{604656 \, x^{19}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((1+x)*(x^2+2*x+1)^5/x^20,x, algorithm="maxima")

[Out]

-1/604656*(75582*x^11 + 739024*x^10 + 3325608*x^9 + 9069840*x^8 + 16628040*x^7 + 21488544*x^6 + 19953648*x^5 +
 13302432*x^4 + 6235515*x^3 + 1956240*x^2 + 369512*x + 31824)/x^19

________________________________________________________________________________________

Fricas [A]  time = 1.23851, size = 240, normalized size = 2.47 \begin{align*} -\frac{75582 \, x^{11} + 739024 \, x^{10} + 3325608 \, x^{9} + 9069840 \, x^{8} + 16628040 \, x^{7} + 21488544 \, x^{6} + 19953648 \, x^{5} + 13302432 \, x^{4} + 6235515 \, x^{3} + 1956240 \, x^{2} + 369512 \, x + 31824}{604656 \, x^{19}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((1+x)*(x^2+2*x+1)^5/x^20,x, algorithm="fricas")

[Out]

-1/604656*(75582*x^11 + 739024*x^10 + 3325608*x^9 + 9069840*x^8 + 16628040*x^7 + 21488544*x^6 + 19953648*x^5 +
 13302432*x^4 + 6235515*x^3 + 1956240*x^2 + 369512*x + 31824)/x^19

________________________________________________________________________________________

Sympy [A]  time = 0.229472, size = 61, normalized size = 0.63 \begin{align*} - \frac{75582 x^{11} + 739024 x^{10} + 3325608 x^{9} + 9069840 x^{8} + 16628040 x^{7} + 21488544 x^{6} + 19953648 x^{5} + 13302432 x^{4} + 6235515 x^{3} + 1956240 x^{2} + 369512 x + 31824}{604656 x^{19}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((1+x)*(x**2+2*x+1)**5/x**20,x)

[Out]

-(75582*x**11 + 739024*x**10 + 3325608*x**9 + 9069840*x**8 + 16628040*x**7 + 21488544*x**6 + 19953648*x**5 + 1
3302432*x**4 + 6235515*x**3 + 1956240*x**2 + 369512*x + 31824)/(604656*x**19)

________________________________________________________________________________________

Giac [A]  time = 1.08878, size = 81, normalized size = 0.84 \begin{align*} -\frac{75582 \, x^{11} + 739024 \, x^{10} + 3325608 \, x^{9} + 9069840 \, x^{8} + 16628040 \, x^{7} + 21488544 \, x^{6} + 19953648 \, x^{5} + 13302432 \, x^{4} + 6235515 \, x^{3} + 1956240 \, x^{2} + 369512 \, x + 31824}{604656 \, x^{19}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((1+x)*(x^2+2*x+1)^5/x^20,x, algorithm="giac")

[Out]

-1/604656*(75582*x^11 + 739024*x^10 + 3325608*x^9 + 9069840*x^8 + 16628040*x^7 + 21488544*x^6 + 19953648*x^5 +
 13302432*x^4 + 6235515*x^3 + 1956240*x^2 + 369512*x + 31824)/x^19